{% extends "base.html" %}
{%block title %}防盗链 {% endblock %}
{%block init_menu %}antileech{% endblock %}
{%block content_title %}防盗链 {% endblock %}
{% block content %}
<form method="post" action="/a/antileech/" class="f">
<fieldset>
	<p>
		<input type="checkbox" name="is_anti_leech" {% if settings.is_anti_leech %} checked="checked" {% endif %}>
		<label for="is_anti_leech">是否启用防盗链</label>
    </p>
	<p>
		<strong>容许的网站规则设置</strong>
	</p>
	<p>
		<textarea name="allow_list" rows=6 cols="100" >{{allow_list}}</textarea>
	</p>
	<p>
        <input id="anti_leech_img" name="anti_leech_img" type="text" maxlength="100" value="{{settings.anti_leech_img}}">
        <label for="anti_leech_img">需要替换的图片的ID</label>		
	</p>

	<p>
		<input type="submit" value="保存">
	</p>
</fieldset>
</form>
<a href="http://sa3.org/program/sa3album-antileech/">如何设置sa3album防盗链</a>
{% endblock %}